package 软件开发原则.合成复用原则.聚合复用;

public class PetrolCar extends Car{

    @Override
    public void move(String color) {
        System.out.println(color+"汽油车");
    }
}
